package com.lcq.demo.common.converter;

import com.lcq.demo.entity.dto.MusicDTO;
import com.lcq.demo.entity.dynamodb.Music;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 240701005
 */
@Mapper
public interface MusicDTOConverter {

    MusicDTOConverter INSTANCE = Mappers.getMapper(MusicDTOConverter.class);

    Music convertToPo(MusicDTO musicDTO);

    List<Music> convetToPoList(List<MusicDTO> musicDTOList);

}
